home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 114 / PC Guia 114.iso / Software / Utils / The Gimp 2.2.1 / gimp-help-2-0.6-setup.exe / {app} / share / gimp / 2.0 / help / en / ch02s04.html < prev    next >
Encoding:
Extensible Markup Language  |  2004-12-19  |  8.5 KB  |  181 lines

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.   <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6.     <title>4.┬áWorking with Images</title>
  7.     <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
  8.     <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
  9.     <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
  10.     <link rel="start" href="index.html" title="GIMP User Manual" />
  11.     <link rel="up" href="ch02.html" title="Chapter┬á2.┬áUsing Gimp" />
  12.     <link rel="prev" href="ch02s03s05.html" title="3.5.┬áBasic Gimp Concepts" />
  13.     <link rel="next" href="ch02s04s02.html" title="4.2.┬áQuickMask" />
  14.   </head>
  15.   <body>
  16.     <div xmlns="" class="navheader">
  17.       <table width="100%" summary="Navigation header">
  18.         <tr>
  19.           <th colspan="3" align="center" id="chaptername">Chapter┬á2.┬áUsing <span xmlns="http://www.w3.org/1999/xhtml" class="acronym">Gimp</span></th>
  20.         </tr>
  21.         <tr>
  22.           <td width="20%" align="left"><a accesskey="p" href="ch02s03s05.html">Prev</a>┬á</td>
  23.           <th width="60%" align="center" id="sectionname">4.┬áWorking with Images</th>
  24.           <td width="20%" align="right">┬á<a accesskey="n" href="ch02s04s02.html">Next</a></td>
  25.         </tr>
  26.       </table>
  27.       <hr />
  28.     </div>
  29.     <div class="sect1" lang="en" xml:lang="en">
  30.       <div class="titlepage">
  31.         <div>
  32.           <div>
  33.             <h2 class="title" style="clear: both"><a id="gimp-using-images"></a>4.┬áWorking with Images</h2>
  34.           </div>
  35.         </div>
  36.       </div>
  37.       <div class="sect2" lang="en" xml:lang="en">
  38.         <div class="titlepage">
  39.           <div>
  40.             <div>
  41.               <h3 class="title"><a id="id3420576"></a>4.1.┬áImage types</h3>
  42.             </div>
  43.           </div>
  44.         </div>
  45.         <p>
  46.       It is tempting to think of an <span class="emphasis"><em>image</em></span> as
  47.       something that corresponds a single display window, or to a single
  48.       file such as a <a href="go01.html#file-jpeg-load">JPEG</a> file,
  49.       but really a Gimp image is a rather complicated structure,
  50.       containing a stack of layers plus several other types of objects:
  51.       a selection mask, a set of channels, a set of paths, an "undo"
  52.       history, etc.  In this section we are going to take a detailed
  53.       look at all of the components of an image, and the things you can
  54.       do with them.
  55.     </p>
  56.         <p>               
  57.       The most basic property of an image is its
  58.       <span class="emphasis"><em>mode</em></span>.  There are three possible modes: RGB,
  59.       grayscale, and indexed. RGB stands
  60.       for Red-Green-Blue, and indicates that each point in the image
  61.       is represented by a "red" level, a "green" level, and a "blue"
  62.       level.  Because every humanly distinguishable color can be
  63.       represented as a combination of red, green, and blue, RGB images
  64.       are full-color.  Each color channel has 256 possible intensity
  65.       levels. More details in <a href="go01.html#glossary-colormodel">
  66.       Color Models</a>
  67.     </p>
  68.         <p>
  69.       In a grayscale image, each point is represented by a brightness
  70.       value, ranging from 0 (black) to 255 (white), with intermediate
  71.       values representing different levels of gray.
  72.     </p>
  73.         <p>
  74.       Essentially the difference between a grayscale image and an RGB
  75.       image is the number of "color channels":  a grayscale image has
  76.       one; an RGB image has three.  An RGB image can be thought of as
  77.       three superimposed grayscale images, one colored red, one green,
  78.       and one blue.
  79.     </p>
  80.         <p>
  81.       Actually, both RGB and grayscale images have one additional
  82.       color channel, called the <span class="emphasis"><em>alpha</em></span> channel,
  83.       representing opacity.  When the alpha value at a given location
  84.       in a given layer is zero, the layer is completely transparent,
  85.       and the color at that location is determined by what lies
  86.       underneath.  When alpha is maximal, the layer is opaque, and the
  87.       color is determined by the color of the layer.  Intermediate
  88.       alpha values correspond to varying degrees of translucency:  the
  89.       color at the location is a proportionl mixture of color from the
  90.       layer and color from underneath.
  91.     </p>
  92.         <p>
  93.       In Gimp, every color channel, including the alpha channel, has a
  94.       range of possible values from 0 to 255; in computing
  95.       terminology, a depth of 8 bits.  Some digital cameras can
  96.       produce image files with a depth of 16 bits per color channel.
  97.       Gimp cannot load such a file without losing resolution.  In most
  98.       cases the effects are too subtle to be detected by the human
  99.       eye, but in some cases, mainly where there are large areas with
  100.       slowly varying color gradients, the difference may be
  101.       perceptible. 
  102.     </p>
  103.         <p>
  104.       The third type, <span class="emphasis"><em>indexed</em></span> images, is a bit
  105.       more complicated to understand.  In an 
  106.       indexed image, only a limited set of discrete colors are used,
  107.       usually 256 or less.  These colors form the "colormap" of the
  108.       image, and each point in the image is assigned a color from the
  109.       colormap.  Indexed images have the advantage that they can be
  110.       represented inside a computer in a way that consumes relatively
  111.       little memory, and back in the dark ages (say, ten years ago),
  112.       they were very commmonly used.  As time goes on, they are used
  113.       less and less, but they are still important enough to be worth
  114.       supporting in Gimp.  (Also, there are a few important kinds of
  115.       image manipulation that are easier to implement with indexed
  116.       images than with continuous-color RGB images.)
  117.     </p>
  118.         <p>
  119.       Some very commonly used types of files (including <a href="go01.html#file-gif-load">GIF</a>) produce
  120.       indexed images when they are opened in Gimp.  Many of Gimp's
  121.       tools don't work very well on indexed imagesΓÇôand many filters
  122.       don't work at allΓÇôbecause of the limited number of colors
  123.       available.  Because of this, it is usually best to convert an
  124.       image to RGB mode before working on it.  If necessary, you can
  125.       convert it back to indexed mode when you are ready of save it
  126.     </p>
  127.         <p>
  128.       Gimp makes it easy to convert from one image type to another,
  129.       using the <a href="ch05s06s02.html" title="6.2.┬áMode">Mode</a> command in
  130.       the Image menu.  Some types of conversions, of course (RGB to
  131.       grayscale or indexed, for example) lose information that cannot
  132.       be regained by converting back in the other direction.  
  133.     </p>
  134.         <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
  135.           <table border="0" summary="Note">
  136.             <tr>
  137.               <td rowspan="2" align="center" valign="top" width="25">
  138.                 <img alt="[Note]" src="../images/note.png" />
  139.               </td>
  140.               <th align="left">Note</th>
  141.             </tr>
  142.             <tr>
  143.               <td colspan="2" align="left" valign="top">
  144.                 <p>
  145.         If you are trying to use a filter on an image, and it appears
  146.         grayed out in the menu, usually the cause is that the image (or,
  147.         more specifically, the layer) you are working on is the wrong
  148.         type.  Many filters can't be used on indexed images.  Some can
  149.         be used only on RGB images, or only on grayscale images.  Some
  150.         also require the presence or absence of an alpha channel.
  151.         Usually the fix is to convert the image to a different type,
  152.         most commonly RGB.
  153.       </p>
  154.               </td>
  155.             </tr>
  156.           </table>
  157.         </div>
  158.       </div>
  159.     </div>
  160.     <div class="navfooter">
  161.       <hr />
  162.       <table width="100%" summary="Navigation footer">
  163.         <tr>
  164.           <td width="40%" align="left"><a accesskey="p" href="ch02s03s05.html">Prev</a>┬á</td>
  165.           <td width="20%" align="center">
  166.             <a accesskey="u" href="ch02.html">Up</a>
  167.           </td>
  168.           <td width="40%" align="right">┬á<a accesskey="n" href="ch02s04s02.html">Next</a></td>
  169.         </tr>
  170.         <tr>
  171.           <td width="40%" align="left" valign="top">3.5.┬áBasic Gimp Concepts┬á</td>
  172.           <td width="20%" align="center">
  173.             <a accesskey="h" href="index.html">Home</a>
  174.           </td>
  175.           <td width="40%" align="right" valign="top">┬á4.2.┬áQuickMask</td>
  176.         </tr>
  177.       </table>
  178.     </div>
  179.   </body>
  180. </html>
  181.